package cn.pomelo.secondskill.mapper;

import cn.pomelo.secondskill.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserInfoMapper {
    int deleteByPrimaryKey(@Param("id") Integer id, @Param("openid") String openid);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(@Param("id") Integer id, @Param("openid") String openid);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    String selectUsernameById(Integer id);

    UserInfo selectByOpenid(String openid);
}